WASM (WebAssembly)#107
Conversation
|
Kia ora @SamuelMarks, and good on ya for this. A live in-browser playground is something I'd half-dreamed about for BarraCUDA and never expected anyone to just go and build. It's basically Godbolt for the compiler, and watching a from-scratch toolchain run a A few notes, none of them blockers, and all good knowing it's WiP: Committed artifacts.
Source list. Test deps. puppeteer pulls a whole Chromium down, which is a chunky dependency for this repo. The node FS sanity test ( Tiny one: in the The worker's nicely done too by the way, capturing stdout/stderr, the MEMFS round-trip, the exit-code checks. Mean foundation to build on. Cheers, thanks for putting the work in, legend! |
* Consolidate WASM build into Makefile The standalone build_wasm.sh script has been removed, and its logic is now natively supported via the make wasm target. This updates test_wasm_build.sh to use the new Makefile target and introduces make wasm_test_e2e for running web UI tests. * Stop tracking WASM artifacts in version control web/barracuda.js and web/barracuda.wasm are build outputs and should not be committed to the repository. They have been deleted from the tree and added to .gitignore. * Fail fast on AMDGPU backend file I/O errors Fixed an issue in src/main.c where failing to open the requested output file would print an error but then silently fall back to emitting assembly to stdout. It now properly aborts with BC_ERR_IO. * Clean up unused package.json Removed package.json since puppeteer is now handled via an ad-hoc local installation check in the Makefile.
|
Kia ora! - Happy to help.
Let me know if there is anything else that needs adjusting! |
WiP, but it works:

Hosted up here also: https://samuelmarks.github.io/barracuda-web/